package com.seewo.dubbo.debugger.admin.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.seewo.dubbo.debugger.admin.entity.Interface;
import com.seewo.dubbo.debugger.admin.po.InterfaceServicePO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author chenliangliang
 * @since 2018-07-25
 */
public interface InterfaceMapper extends BaseMapper<Interface> {

    /**
     * 批量插入
     *
     * @param list
     * @return
     */
    int batchInsert(List<Interface> list);


    /**
     * 连接查询interface和service
     *
     * @param serviceId
     * @param name
     * @return
     */
    InterfaceServicePO selectInterfaceService(@Param("serviceId") Integer serviceId, @Param("name") String name);
}
